
class Warning {
  final int? ID;
  final int? LWarnNumber;
  final String? LWarnSName;
  final String? LWarnLName_EN;
  final String? LWarnLName_CN;
  final int? LWarnColor;
  final int? LWarnPush;

  Warning({
    this.ID,
    this.LWarnNumber,
    this.LWarnSName,
    this.LWarnLName_EN,
    this.LWarnLName_CN,
    this.LWarnColor,
    this.LWarnPush
  });

  factory Warning.fromJson(Map<String, dynamic> json) {

    return Warning(
      ID: json['ID'],
      LWarnNumber: json['LWarnNumber'],
      LWarnSName: json['LWarnSName'] == null ? "" : json['LWarnSName'].toString(),
      LWarnLName_EN: json['LWarnLName_EN'] == null ? "" : json['LWarnLName_EN'].toString(),
      LWarnLName_CN: json['LWarnLName_CN'] == null ? "" : json['LWarnLName_CN'].toString(),
      LWarnColor: json['LWarnColor'],
        LWarnPush: json['LWarnPush']
    );
  }
}